From e8515f4a0b697f561e0683c2d436f96e17c85850 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Wed, 2 Apr 2008 12:13:10 +0000 Subject: [PATCH] Should've added $dbw->commit() here, hope this fixes bug 13587 --- includes/api/ApiEditPage.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/api/ApiEditPage.php b/includes/api/ApiEditPage.php index 1f961220d0..dde5a1b2ea 100644 --- a/includes/api/ApiEditPage.php +++ b/includes/api/ApiEditPage.php @@ -146,7 +146,9 @@ class ApiEditPage extends ApiBase { # but that breaks API mode detection through is_null($wgTitle) global $wgTitle; $wgTitle = null; + $dbw = wfGetDb(DB_MASTER); $retval = $ep->internalAttemptSave($result, $wgUser->isAllowed('bot') && $params['bot']); + $dbw->commit(); switch($retval) { case EditPage::AS_HOOK_ERROR: -- 2.20.1